﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [Table("Empresa")]
    public class Empresa
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public int id { get; set; }


        [Required(ErrorMessage = "El Codigo es requerido")]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public int codigo { get; set; }
       
        [Required(ErrorMessage = "El Nombre es requerido")]
        [DisplayFormat(ConvertEmptyStringToNull = false)]
        public string nombre { get; set; }

        //[DisplayFormat(ConvertEmptyStringToNull = false)]
        //public virtual List<Darsena> darsenas { get; set; }




    }
}
